import axios from 'axios'

export function initSiren(err, vm, info, sirenUUid) {
  axios.post('http://localhost:3000/issus/addissus',
    Object.assign({
      error: err.message,
      info,
      issusTime: Date.now()
    }, sirenUUid)
  )
    .then(res => {
      console.log(res);
    }).catch(err => {
      console.log(err);
    })
}
